﻿using Newtonsoft.Json;
using System;
using System.Text.Json.Serialization;

namespace ThresholdAssistant.DataContract.Models
{
    /// <summary>
    /// 授权的机器人群信息
    /// </summary>
    [Serializable]
    public class RobotChatRoomInfoModel
    {
        /// <summary>
        /// 商家编号
        /// </summary>
        [JsonProperty("merchant_no"), JsonPropertyName("merchant_no")]
        public string MerchantNo { get; set; }

        /// <summary>
        /// 群id
        /// </summary>
        [JsonProperty("chatroom_id"), JsonPropertyName("chatroom_id")]
        public string ChatRoomId { get; set; }

        /// <summary>
        /// 群编号
        /// </summary>
        [JsonProperty("chatroom_serial_no"), JsonPropertyName("chatroom_serial_no")]
        public string ChatRoomSerialNo { get; set; }

        /// <summary>
        /// 群名称
        /// </summary>
        [JsonProperty("chatroom_name"), JsonPropertyName("chatroom_name")]
        public string ChatRoomName { get; set; }

        /// <summary>
        /// base64编码群名称
        /// </summary>
        [JsonProperty("base64_chatroom_name"), JsonPropertyName("base64_chatroom_name")]
        public string Base64ChatRoomName { get; set; }

        /// <summary>
        /// 群人数
        /// </summary>
        [JsonProperty("member_count"), JsonPropertyName("member_count")]
        public int MemberCount { get; set; }

        /// <summary>
        /// 群主编号
        /// </summary>
        [JsonProperty("owner_wx_id"), JsonPropertyName("owner_wx_id")]
        public string OwnerWxId { get; set; }

        /// <summary>
        /// 群主编号
        /// </summary>
        [JsonProperty("owner_serial_no"), JsonPropertyName("owner_serial_no")]
        public string OwnerSerialNo { get; set; }

        /// <summary>
        /// 是否在群内
        /// </summary>
        [JsonProperty("is_in_chatroom"), JsonPropertyName("is_in_chatroom")]
        public bool IsInChatRoom { get; set; }

        /// <summary>
        /// 是否关注群
        /// </summary>
        [JsonProperty("is_open"), JsonPropertyName("is_open")]
        public bool IsOpen { get; set; }

        /// <summary>
        /// 是否保存在通讯录
        /// </summary>
        [JsonProperty("is_in_contacts"), JsonPropertyName("is_in_contacts")]
        public bool IsInContacts { get; set; }

        /// <summary>
        /// 是否群主
        /// </summary>
        [JsonProperty("is_owner"), JsonPropertyName("is_owner")]
        public bool IsOwner { get; set; }

        /// <summary>
        /// 是否群管理员
        /// </summary>
        [JsonProperty("is_admin"), JsonPropertyName("is_admin")]
        public bool IsAdmin { get; set; }

        /// <summary>
        /// 是否企业微信群
        /// </summary>
        [JsonProperty("is_enterprise_chatroom"), JsonPropertyName("is_enterprise_chatroom")]
        public bool IsEnterpriseChatRoom { get; set; }
    }
}
